package cn.itsource.ymcc.feign;

import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-system",fallbackFactory = SystemFeignFallbackFactory.class)
public interface SystemFeign {
    @RequestMapping(value = "/systemdictionaryitem/list",method = RequestMethod.GET)
    JSONResult list();

    @RequestMapping(value = "/systemdictionaryitem/{id}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("id")Long id);
}
